home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / CSMP Digests / csmp-v1-010.txt < prev    next >
Encoding:
Text File  |  1992-11-18  |  31.7 KB  |  855 lines  |  [TEXT/MPS ]

  1. C.S.M.P. Digest             Sun, 08 Mar 92       Volume 1 : Issue 10
  2.  
  3. Today's Topics:
  4.  
  5.     Question: How to use Text/styl resources
  6.     FSOpen problem with Pathworks/Appleshare
  7.     Updating QuickTime pictures in HyperCard
  8.      Is FlushVol still recommended?
  9.      A QuickTime puzzlement
  10.      Macintalk (was Re: Is FlushVol still recommended?)
  11.     COMPILERS AND INLINE ASM.
  12.     Sound.h w/THINK C 5.0.2
  13.     SIOW in MPW
  14.  
  15.  
  16. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  17.  
  18. These digests are available (by using FTP, account anonymous, your email
  19. address as password) in the pub/mac directory on ftp.cs.uoregon.edu.
  20. This is also the home of the comp.sys.mac.programmer Frequently Asked
  21. Questions list.
  22.  
  23. The articles in these digests are taken directly from comp.sys.mac.programmer.
  24. They are not edited; all articles included in this digest are in their original
  25. posted form.  The only articles that are -not- included in these digests are
  26. those which didn't receive any replies (except those that give information
  27. rather than ask a question).  All replies to each article are concatenated
  28. onto the original article in the order in which they were received.  Article
  29. threads are not added to the digests until the last article added to the
  30. thread is at least one month old (this is to ensure that the thread is dead
  31. before adding it to the digests).
  32.  
  33. Send administrative mail to mkelly@cs.uoregon.edu.
  34.  
  35. -------------------------------------------------------
  36.  
  37. From: greeny@top.cis.syr.edu (Jonathan Greenfield)
  38. Subject: Question: How to use Text/styl resources
  39. Date: 22 Jan 92 16:21:41 GMT
  40. Organization: CIS Dept., Syracuse University
  41.  
  42. I've been unable to locate information on using Text/styl resources.  I
  43. have checked both Spinside Macintosh (Vols. 1-5) and Inside Mac Vol. 6
  44. for information on Text/styl resources and have found essentially nothing.
  45.  
  46. Could someone send me some pointers to such information, or perhaps, send
  47. me a sample code segment (preferably in Pascal) that displays a Text/styl
  48. resource in a dialog box or alert?
  49.  
  50. Thanks.
  51.  
  52.  
  53. greeny                                           greeny@top.cis.syr.edu
  54.  
  55. "What's the difference between an orange?"
  56.  
  57.  
  58.  
  59. - -------------------------
  60.  
  61. From: vkwx@vax5.cit.cornell.edu (Ed Swierk)
  62. Subject:  Question: How to use Text/styl resources
  63. Date: 23 Jan 92 00:48:45 GMT
  64. Organization: Cornell University
  65.  
  66. In article <1992Jan22.112142.17152@newstand.syr.edu>,
  67. greeny@top.cis.syr.edu (Jonathan Greenfield) writes: 
  68. > I've been unable to locate information on using Text/styl resources.  I
  69. > have checked both Spinside Macintosh (Vols. 1-5) and Inside Mac Vol. 6
  70. > for information on Text/styl resources and have found essentially nothing.
  71.  
  72. There is a little blurb somewhere about them in one of the IM's, I think 5.
  73. Nothing too informative, though.
  74.  
  75. This is what I've figured out from what there is in IM 5: 'TEXT' resources
  76. are just hunks of text that you can load in with GetResource and do with as
  77. you please. 'styl' resources are called "style scraps," and are what
  78. applications put on the Clipboard along with 'TEXT' resources. They are
  79. represented by the data type StScrpRec (see IM 5, p. 265).
  80.  
  81. > Could someone send me some pointers to such information, or perhaps, send
  82. > me a sample code segment (preferably in Pascal) that displays a Text/styl
  83. > resource in a dialog box or alert?
  84.  
  85. Here is a short program written with THINK Pascal that dumps a 'TEXT' and
  86. 'styl' resource combo to the Drawing window. It can be easily adapted to
  87. draw to a window of your choice.
  88.  
  89. PROGRAM TestEdit;
  90.  
  91.     VAR
  92.         rsrcRefNum: INTEGER;
  93.         aTEHandle: TEHandle;
  94.         aStScrpHandle: StScrpHandle;
  95.         textHandle: Handle;
  96.         destRect, viewRect: Rect;
  97.  
  98. BEGIN
  99.  
  100. { set up }
  101.     rsrcRefNum := OpenResFile('TestEdit.rsrc');
  102.     IF ResError <> noErr THEN
  103.         SysBeep(50);
  104.  
  105. { make a new TERec }
  106.     SetRect(destRect, 0, 0, 400, 300);
  107.     SetRect(viewRect, 0, 0, 400, 300);
  108.     aTEHandle := TEStylNew(destRect, viewRect);
  109.  
  110. { get the 'TEXT' resource }
  111.     textHandle := GetResource('TEXT', 128);
  112.  
  113. { get the 'styl' resource }
  114.     aStScrpHandle := StScrpHandle(GetResource('styl', 128));
  115.  
  116. { insert the text into the TERec }
  117.     MoveHHi(textHandle);
  118.     HLock(textHandle);
  119.     TEStylInsert(textHandle^, GetHandleSize(textHandle), aStScrpHandle,
  120. aTEHandle);
  121.     HUnlock(textHandle);
  122.  
  123. { draw the text }
  124.     TEUpdate(viewRect, aTEHandle);
  125.  
  126. { clean up }
  127.     DisposHandle(textHandle);
  128.     ReleaseResource(Handle(aTEHandle));
  129.     ReleaseResource(Handle(aStScrpHandle));
  130.     CloseResFile(rsrcRefNum);
  131.  
  132. END.
  133.  
  134. -- 
  135.                 Ed Swierk
  136.        Cornell University
  137. vkwx@vax5.cit.cornell.edu
  138.  
  139.  
  140.  
  141. - -------------------------
  142.  
  143. From: jmatthews@desire.wright.edu
  144. Subject:  Question: How to use Text/styl resources
  145. Date: 23 Jan 92 05:09:38 GMT
  146. Organization: Wright State University
  147.  
  148. In article <1992Jan22.112142.17152@newstand.syr.edu>, greeny@top.cis.syr.edu (Jonathan Greenfield) writes:
  149. > Could someone send me some pointers to such information, or perhaps, send
  150. > me a sample code segment (preferably in Pascal) that displays a Text/styl
  151. > resource in a dialog box or alert?
  152.  
  153. Use ResEdit to create a TEXT/styl pair; call TEStylNew to create a styled
  154. text edit record; and pull the resources into your program:
  155.  
  156.   procedure GetStylText (teHdl: TEHandle; id: Integer);
  157.   var hStyl, hText: Handle;
  158.   begin
  159.     hText := GetResource('TEXT', id);
  160.     hStyl := GetResource('styl', id);
  161.     if (hText <> nil) and (hStyl <> nil) then
  162.       begin
  163.         HLock(hText);
  164.         HLock(hStyl);
  165.         TEStylInsert(hText^, SizeResource(hText), StScrpHandle(hStyl), teHdl);
  166.         HUnlock(hText);
  167.         HUnlock(hStyl);
  168.       end
  169.     else
  170.       begin
  171.         ErrorAlert('Dave, what are you doing, Dave?');
  172.         ExitToShell
  173.       end
  174.   end;
  175.  
  176. Call TEUpdate to cause the styled text to be drawn in your view rectangle.
  177.  
  178. The styl record stores font details by font number, which varies from system
  179. to system. This is a problem for which I don't have a good answer.
  180.  
  181. o----------------------------------------------------------------------------o
  182. | John B. Matthews, jmatthews@desire.wright.edu, disclaimer:= myViews <> WSU |
  183. | "Now why would Mike Wallace be standing around on MY porch with a TV crew?"|
  184. o----------------------------------------------------------------------------o
  185.  
  186.  
  187.  
  188. ---------------------------
  189.  
  190. From: jjohnson@ewsvax.mdcbbs.com
  191. Subject: FSOpen problem with Pathworks/Appleshare
  192. Date: 21 Jan 92 15:20:19 GMT
  193. Organization: McDnDSpaceSys, Huntington Bch, CA
  194.  
  195. Hi all,
  196.  
  197.   I have a (hopefully) simple problem that is stopping me cold with accessing
  198. a DEC Pathworks volume with FSOpen. Here's the deal:
  199.  
  200. A VAX user creates a text file and transfers it to a given directory. This
  201. directory is also one folder down from the root of a Pathworks volume. The
  202. volume is mounted to a Mac. This folder has a *lot* of files in it (3000+),
  203. which is why we placed it one level down (anyone who's waited for a Pathworks
  204. volume to open on a Mac knows why).
  205.  
  206.   The code stub gets a full pathname (i.e. "Vol:folder:thefile.lis"), does a
  207. GetVol on the volume to get the VolID, and then does an FSOpen with the pathname
  208. and VolID. This returns a -43 (file not found). (And yes, I've run it with
  209. LightsBug on to make sure the pathname is right.)
  210.  
  211. Now for the interesting part... If the pathname is fed to MSWord, (via use of
  212. the Hypercard "open <file> with <app>")it will open the file. After Word has
  213. opened the file once, the FSOpen *works*!!!!!! Can someone shed some light on
  214. why this is the case, and how we can open the file directly?
  215.  
  216. We're using Pathworks 1.0, Think Pascal 4.0, System 6.0.5 & 7 on IIcx's.
  217.  
  218. Thanks in advance...!
  219.  
  220.  
  221. Jeff Johnson
  222. jjohnson%ewsvax.decnet@mdcgwy.mdc.com
  223.  
  224.  
  225. - ---------------------------------------------------------------------------
  226. ....About that Pathworks upgrade supposed to be coming....the one for 7....
  227. ....November...... uh, which century was that, exactly????
  228. Digital has it now, but who says *YOU'LL* be able to get it??????
  229.  
  230.  
  231.  
  232. - -------------------------
  233.  
  234. From: mandel@vax.anes.tulane.edu (Jeff E Mandel)
  235. Subject:  FSOpen problem with Pathworks/Appleshare
  236. Date: 22 Jan 92 23:38:57 GMT
  237. Organization: Tulane University School of Medicine
  238.  
  239. In article <1992Jan21.152019.1@ewsvax.mdcbbs.com> jjohnson@ewsvax.mdcbbs.com
  240. writes:
  241. >
  242. >A VAX user creates a text file and transfers it to a given directory. This
  243. >directory is also one folder down from the root of a Pathworks volume. The
  244. >volume is mounted to a Mac. This folder has a *lot* of files in it (3000+),
  245. >which is why we placed it one level down (anyone who's waited for a Pathworks
  246. >volume to open on a Mac knows why).
  247. >
  248. >  The code stub gets a full pathname (i.e. "Vol:folder:thefile.lis"), does a
  249. >GetVol on the volume to get the VolID, and then does an FSOpen with the
  250. pathname
  251. >and VolID. This returns a -43 (file not found). (And yes, I've run it with
  252. >LightsBug on to make sure the pathname is right.)
  253. >
  254. >Now for the interesting part... If the pathname is fed to MSWord, (via use of
  255. >the Hypercard "open <file> with <app>")it will open the file. After Word has
  256. >opened the file once, the FSOpen *works*!!!!!! Can someone shed some light on
  257. >why this is the case, and how we can open the file directly?
  258. >
  259.  
  260. I imagine Bob Denny can give you a more definitive answer, but PathWorks
  261. doesn't know about files moved into the directory until the file system gets
  262. properly tweaked to see what's in the directory. I don't know exactly which
  263. call it is that does this, however.
  264. I'd probably try PBGetCatInfo on the directory, then the FSOpen, and see if it
  265. helps.
  266.  
  267. Jeff E Mandel MD MS
  268. Associate Professor of Anesthesiology
  269. Tulane University School of Medicine
  270. New Orleans, LA
  271.  
  272. mandel@vax.anes.tulane.edu
  273.  
  274.  
  275.  
  276. - -------------------------
  277.  
  278. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  279. Subject:  FSOpen problem with Pathworks/Appleshare
  280. Date: 23 Jan 92 04:46:54 GMT
  281. Organization: University of Waikato, Hamilton, New Zealand
  282.  
  283. In article <10396@cs.tulane.edu>, mandel@vax.anes.tulane.edu (Jeff E Mandel)
  284. complains about not being able to open a file on a PathWorks volume that
  285. was just created/moved there from the VMS side.
  286.  
  287. Funnily enough, I have hit a similar problem trying to open text files
  288. from the MPW Shell (using its "Open" command) immediately after renaming
  289. them to a Pathworks folder using VMS RENAME in a Telnet window. In every
  290. case, I found that doing a wildcard "Files" command (directory listing)
  291. on the folder caused the Pathworks server to notice the file, and a subsequent
  292. "Open" would succeed.
  293.  
  294. Perhaps HyperCard 2.1's "open <document> with <app>" is triggering some
  295. sort of directory lookup, which is equivalent in effect. Whatever it is,
  296. a straight PBOpen call certainly isn't enough for PathWorks to notice the
  297. new file. Perhaps it should be.
  298.  
  299. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  300. Computer Services Dept                     fax: +64-7-838-4066
  301. University of Waikato            electric mail: ldo@waikato.ac.nz
  302. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  303.  
  304.  
  305.  
  306. ---------------------------
  307.  
  308. From: alves@calvin.usc.edu (William Alves)
  309. Subject: Updating QuickTime pictures in HyperCard
  310. Date: 22 Jan 92 03:25:57 GMT
  311. Organization: University of Southern California, Los Angeles, CA
  312.  
  313. When I use direct QuickTime movies in HyperCard or display single images
  314. with the QTPict XCMD, parts of the image may disappear when HyperCard
  315. updates the card window. For example, if I move the card half off the
  316. screen and back on, half of any QuickTime picture that was displayed
  317. is gone. If I activate a different card window and bring it to the front,
  318. the picture in the QuickTime stack window completely disappears.
  319.  
  320. I assume this is because HyperCard has no knowledge of the QuickTime
  321. picture when updates are sent to the GrafPort of the window. Of course
  322. this is not such a problem while movies are running because the picture
  323. is constantly being changed. But when a movie is paused or I am displaying
  324. still images, it is definitely a problem.
  325.  
  326. Is there any way around this problem? Thanks for your help!
  327.  
  328. Bill Alves
  329.  
  330.  
  331.  
  332. - -------------------------
  333.  
  334. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  335. Subject:  Updating QuickTime pictures in HyperCard
  336. Date: 23 Jan 92 04:51:50 GMT
  337. Organization: University of Waikato, Hamilton, New Zealand
  338.  
  339. In article <knrha5INNjac@calvin.usc.edu>, alves@calvin.usc.edu (William Alves)
  340. complains about how still images drawn directly to a HyperCard card window
  341. don't refresh correctly on a window update.
  342.  
  343. I've seen workarounds which involved calling the external periodically
  344. in an idle handler and telling it to unconditionally redraw the entire image,
  345. say every 3 seconds.
  346.  
  347. The basic problem is that there is no way to trap update events in
  348. HyperTalk. I think this is sorely needed.
  349.  
  350. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  351. Computer Services Dept                     fax: +64-7-838-4066
  352. University of Waikato            electric mail: ldo@waikato.ac.nz
  353. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  354.  
  355.  
  356.  
  357. - -------------------------
  358.  
  359. From: alves@calvin.usc.edu (William Alves)
  360. Subject:  Updating QuickTime pictures in HyperCard
  361. Date: 23 Jan 92 05:22:00 GMT
  362. Organization: University of Southern California, Los Angeles, CA
  363.  
  364. In article <1992Jan23.175151.6301@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
  365. >In article <knrha5INNjac@calvin.usc.edu>, alves@calvin.usc.edu (William Alves)
  366. >complains about how still images drawn directly to a HyperCard card window
  367. >don't refresh correctly on a window update.
  368. >
  369. >I've seen workarounds which involved calling the external periodically
  370. >in an idle handler and telling it to unconditionally redraw the entire image,
  371. >say every 3 seconds.
  372. >
  373. This would be more workable if it were not for the fact that I usually have
  374. several stacks open in different windows (using HyperCard 2.1). When another
  375. window is activated, the QuickTime picture disappears AFTER the suspendstack
  376. message is sent. The stack that is activated has no way of knowing that an
  377. inactive window has a QuickTime picture that must be updated.
  378.  
  379. >The basic problem is that there is no way to trap update events in
  380. >HyperTalk. I think this is sorely needed.
  381.  
  382. Agreed. Thanks for the reply.
  383.  
  384. Bill Alves
  385.  
  386.  
  387.  
  388. - -------------------------
  389.  
  390. From: paf@ariel.its.unimelb.EDU.AU (Paul Fritze)
  391. Subject:  Updating QuickTime pictures in HyperCard
  392. Date: 24 Jan 92 06:41:19 GMT
  393. Organization: Chemistry Department, Melbourne University, AUS.
  394.  
  395. >I've seen workarounds which involved calling the external periodically
  396. >in an idle handler and telling it to unconditionally redraw the entire image,
  397. >say every 3 seconds.
  398. >The basic problem is that there is no way to trap update events in
  399. >HyperTalk. I think this is sorely needed.
  400.  
  401. I have used a kludge quite successfully when putting colour images over a card
  402. by using an XFCN to return the value of a single pixel that indicates the image
  403. has been at least partially cleared. The idle script then refreshes the
  404. picture only when necessary. This works best for dialog boxes and the like
  405. which are predictable in their behaviour.
  406.  
  407. If anyone is interested I will look up the details.
  408.  
  409.  
  410.  
  411. ---------------------------
  412.  
  413. From: tonny@synopsys.com (Tonny Yu)
  414. Subject:  Is FlushVol still recommended?
  415. Date: 22 Jan 92 17:02:31 GMT
  416. Organization: Just me
  417.  
  418. I am looking for source code to help build a speech synthesis program.  I heard
  419. that MacinTalk has some source code support.  Does anyone know how I can get
  420. hold of it? Are there any other code sources?
  421. Any experiences with speech synthesis?
  422.  
  423. I would appreciate any advice, suggestions, or references.  Thanks.
  424.  
  425.  
  426.     -Tonny
  427.  
  428.  
  429.  
  430. - -------------------------
  431.  
  432. From: ksand@apple.com (Kent Sandvik)
  433. Subject:  Is FlushVol still recommended?
  434. Date: 25 Jan 92 21:57:29 GMT
  435. Organization: MacDTS Mongols
  436.  
  437. In article <1992Jan22.170231.2326@Synopsys.Com>, tonny@synopsys.com (Tonny Yu) writes:
  438. > I am looking for source code to help build a speech synthesis program.  I heard
  439. > that MacinTalk has some source code support.  Does anyone know how I can get
  440. > hold of it? Are there any other code sources?
  441. > Any experiences with speech synthesis?
  442. > I would appreciate any advice, suggestions, or references.  Thanks.
  443.  
  444. Let's see if I got it right this time :-) (Kent is reading an APDALog,
  445. hopefully this semi-old one is right...). Yes, it's listed in the APDA
  446. product line. And the package should include examples of how to use
  447. the libraries.
  448.  
  449. Anyway, a word of warning. Apple doesn't guarantee anymore that MacinTalk
  450. works properly under System 7. Please read Tech Note 268 that explains
  451. the technical issues.
  452.  
  453. I also heard a rumor that the TalkingMoose people got MacinTalk work
  454. properly under System 7.
  455.  
  456. Kent
  457. - -
  458. not speaking for DTS, nope, no way.
  459.  
  460.  
  461.  
  462. ---------------------------
  463.  
  464. From: ivanski@world.std.com (Ivan M CaveroBelaunde)
  465. Subject:  A QuickTime puzzlement
  466. Date: 19 Jan 92 23:06:40 GMT
  467. Organization: The World Public Access UNIX, Brookline, MA
  468.  
  469. ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
  470.  
  471. ><Playback problems wih "Hollywood" moov>
  472. >I assumed initially that this had something to do with key frames, and
  473. >that QuickTime was simply restarting the decompression sequence from a
  474. >movie frame that didn't depend on any previous movie frame. However, this
  475. >appears not to be true, because on further investigation I found that:
  476. >   * "Hollywood" is not temporally compressed (every frame is a key frame),
  477. >and
  478. >   * I have not encountered the same phenomenon with any other movie,
  479. >     even though I've tried ones both with and without temporal compression.
  480. >Can anybody shed some light on my puzzlement here? The fact that my code
  481. >seems to work with every other movie suggests there's something unusual
  482. >about the format of this one. Doesn't it?
  483.  
  484. I haven't had a chance to look at the Hollywood movie, but the QuickTime
  485. MooV format has changed slightly during beta, and that might be it. You
  486. might want to load and resave the movie to a different file using simple
  487. player (maybe even flattening it). If that doesn't fix it, you could
  488. use ConvertToMooV to recompress it using the new compressors (the data
  489. stream format for rpza changed at least once, I believe).
  490.  
  491. - -
  492. Ivan Cavero Belaunde (ivanski@world.std.com)
  493. Visualist, DiVA Corporation
  494.  
  495.         "A tu escuela llegue, sin entender por que llegaba,
  496.         En tus salones encuentro, mil caminos y encrucijadas,
  497.         Y aprendo mucho, y no aprendo nada,
  498.         Maestra vida, camara', te da, te quita, te quita y te da."
  499.                 -Ruben Blades, "Maestra Vida"
  500.  
  501.  
  502.  
  503. - -------------------------
  504.  
  505. From: ivanski@world.std.com (Ivan M CaveroBelaunde)
  506. Subject:  Image compression questions
  507. Date: 27 Jan 92 05:13:44 GMT
  508. Organization: The World Public Access UNIX, Brookline, MA
  509.  
  510. krk@itl.itd.umich.edu (Kenneth Knight) writes:
  511.  
  512. >In article <1992Jan17.170529.6183@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
  513. >>Can someone clear up some lingering bits of confusion I have about the
  514. >>QuickTime Image Compression Manager? This has to do with compressing and
  515. >>decompressing image sequences, and exactly what some flag bits mean.
  516. >>
  517. >>There appear to be three "CodecFlags" bits that have something to do
  518. >>with temporally compressed sequences. These are codecFlagUseImageBuffer,
  519. >>codecFlagUpdatePrevious, and codecFlagUpdatePreviousComp.
  520. >>
  521.  
  522. Not positive, but my understanding is that the ICM, when compressing
  523. sequences, keeps around the previous image and a compressed version of
  524. it (one of them might be purgeable or something, but I'm not sure. It's
  525. been a while since I've dealt with that part of QT). Anyhow, when
  526. you call CompressSequenceFrame with codecFlagUpdatePrevious it updates the
  527. previous uncompressed image, and with codecFlagUpdatePreviousComp it updates
  528. the previous compressed image. Apple's sample code recommended using both
  529. (since using the previously compressed image for frame differencing results
  530. in more accurate and compact frame differencing) by passing
  531. codecFlagUpdatePrevious+codecFlagUpdatePreviousComp.
  532.  
  533. >On a related issue I don't see what difference using the bestSpeedCodec,
  534. >bestCompressionCode, or bestFidelityCodec make. I've tried changing those
  535. >bits around and done photo (JPEG) compressions on several 24-bit images and
  536. >the results have yet to change from what I was getting when the that bit was
  537. >simply set to anyCodec. Am I just missing something here?
  538.  
  539. They will do nothing with vanilla QuickTime. If you have multiple compressors
  540. of one type installed, however, (such as the GC-based video compressor or
  541. Storm's hardware JPEG compressor), bestSpeedCodec will pick the fastest
  542. codec of that type (in the above examples, the GC-based rpza and Storm's jpeg
  543. over the native QuickTime ones).
  544.  
  545. The codecinfo resources that each codec makes available to the ICM states,
  546. among other things, speed, fidelity and compression ratings to allow the
  547. ICM to pick compressors when passed bestSpeedCodec et.al.
  548.  
  549. Hope this helps. Back to the coding cave.
  550.  
  551. --
  552. Ivan Cavero Belaunde
  553. Visualist, DiVA Corporation
  554.  
  555.     "A tu escuela llegue, sin entender por que llegaba,
  556.     en tus salones encuentro, mil caminos y encrucijadas,
  557.     y aprendo mucho ... y no aprendo nada ...
  558.     Maestra vida, camara, te da, te quita, te quita y te da."
  559.         -Ruben Blades, "Maestra Vida"
  560.  
  561.  
  562.  
  563. ---------------------------
  564.  
  565. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  566. Subject:  Macintalk (was Re: Is FlushVol still recommended?)
  567. Date: 22 Jan 92 23:05:29 GMT
  568. Organization: Kalamazoo College
  569.  
  570. tonny@synopsys.com (Tonny Yu) writes:
  571. >I am looking for source code to help build a speech synthesis program.  I heard
  572. >that MacinTalk has some source code support.
  573.  
  574. Sadly, not true.  Apple bought the _object_ code for Macintalk for the
  575. unveiling of the original Mac, so Steve Jobs could have it speak.  They
  576. do not own the source code.  Macintalk has been patched twice in the
  577. last eight years to remain (semi-) compatible with the changing system
  578. software, but the patches were applied to the object code.
  579.  
  580. >Does anyone know how I can get
  581. >hold of it? Are there any other code sources?
  582.  
  583. There are no other free text-to-speech modules for the Macintosh.  (In
  584. fact, I don't think there are any at all, but I won't stick my neck
  585. out.)
  586. -- 
  587.  Jamie McCarthy     Internet: k044477@kzoo.edu     AppleLink: j.mccarthy
  588.  
  589.  
  590.  
  591. - -------------------------
  592.  
  593. From: larry@spike.rprc.washington.edu (Larry Shupe)
  594. Subject:  Macintalk (was Re: Is FlushVol still recommended?)
  595. Date: 23 Jan 92 16:17:54 GMT
  596. Organization: University of Washington
  597.  
  598. > tonny@synopsys.com (Tonny Yu) writes:
  599. > I am looking for source code to help build a speech synthesis program.
  600. > I heard that MacinTalk has some source code support.
  601. > Does anyone know how I can get
  602. > hold of it? Are there any other code sources?
  603.  
  604. There is a MacinTalk Development Package available from APDA.
  605. It allows you to call the MacinTalk routines from within your
  606. own program.  I've used this package on a Mac+ to write an
  607. INIT that speaks to you at startup time.  This program even
  608. functions under system 7.0 on the Mac+.  I have no idea if
  609. it will work on newer machines, and I doubt if it will continue
  610. to function much longer.
  611.  
  612. Larry Shupe
  613. larry@spike.rprc.washington.edu
  614.  
  615.  
  616.  
  617. ---------------------------
  618.  
  619. From: U21192@uicvm.uic.edu (Giovanni Kolobari)
  620. Subject: COMPILERS AND INLINE ASM.
  621. Date: 23 Jan 92 02:14:41 GMT
  622. Organization: University of Illinois at Chicago
  623.  
  624.  
  625.  Howdy fellow MacAddicts...
  626. I was writting a CODE resource the other day, and due to the fact
  627. that it was quite convoluted, I had to take care of some register
  628. saving manually. I am using
  629. THINK Pascal 3.0.2 (system 6.0.7) The resource bombed for the
  630. obvious reasons (some scratch registers were considered non-scratch,
  631. etc, etc) I examined the code with ResEdit, figured out which registers
  632. TP saves, and manually inserted he other saves with InLines.
  633. Finally after saving all the remaining registers I got it to work.
  634. I am sure that I could have done the same using "RememberA0",..etc,
  635. but believe me, it needed more than that. Anyway.
  636. What came to mind was comparing the Assembly capabilities of TC with
  637. those of TP. It is more than obvious that TP lacks badly in that area.
  638. I was trying to figure out a scheme that would allow me to "replicate"
  639. in a sense the Inline capability that TC has, but what I came up
  640. was obviously pretty limited: Use ASM , the use TP utility '.rel2lib'
  641. and then include it as a library to my project. Still, the state of
  642. the registers is pretty much unknown, unless someone KNOWS in advance
  643. what TP does before it calls ANY or a PARTICULAR subroutine.
  644.  Of course one can use InLines, but this is cumbersome, since *some*
  645. sort of assembler has to be used to translate the mnemonics to ops.
  646.  The big question is, is it THAT hard to implement an inline assembler
  647. feature in THINK P? Are there maybe some technical considerations that
  648. have to be taken into account? From what I've seen so far, the TP compiler
  649. meets and exceeds many of the standards of compiler design that we poor
  650. oldtimers were taught at school. (Speed vs error reporting accuracy, etc)
  651. So, it is kind of obvious to me that the gurus who designed such a monster,
  652. will have nil trouble getting it to do an inline assembly trick.
  653. One other issue of importance, here, is of course that of taste:
  654.  Supposedly C allows one more freedom than Pascal. My opinion is
  655. (only MY opinion, of course) that since all the new goodies like
  656. type coersion, pointer casting, objects and Inline code came out,
  657. the issue of "power" has been reduced to pretty much an issue of
  658. taste or style if you will.
  659.  So, why do the C programmers have to be more priviledged on that?
  660. I for one, have been using RatFor for quite a while, so do not
  661. need C perse. In the worst case, lets pay more for a THINK P compiler
  662. with Inline ASM. I don't think its such a proposterous idea.
  663.  So, how about it? Any opinions? Can it be done?
  664. G.K. Professional Schizophrenic.
  665. - ---------------------------------------
  666. Everyday you read, see, hear, smell taste and feel things.
  667. If you like the experience, you remember it.
  668. What happens when you DO NOT like the experience?
  669. You forget it, right? WRONG.
  670. Your subconscious remembers it...So,
  671. just make sure it doesn't overflow...
  672. - -------------------------------------------------
  673. The opinions above are mine. Being a Schizophrenic, I am not
  674. liable to persecution. UIC has nothing to do with them.
  675.  
  676.  
  677.  
  678. - -------------------------
  679.  
  680. From: siegel@world.std.com (Rich Siegel)
  681. Subject:  COMPILERS AND INLINE ASM.
  682. Date: 23 Jan 92 16:13:03 GMT
  683. Organization: Symantec Language Products Group
  684.  
  685. In article <92022.201441U21192@uicvm.uic.edu> Giovanni Kolobari <U21192@uicvm.uic.edu> writes:
  686.  
  687. > The big question is, is it THAT hard to implement an inline assembler
  688. >feature in THINK P? Are there maybe some technical considerations that
  689. >have to be taken into account? From what I've seen so far, the TP compiler
  690. >meets and exceeds many of the standards of compiler design that we poor
  691. >oldtimers were taught at school. (Speed vs error reporting accuracy, etc)
  692. >So, it is kind of obvious to me that the gurus who designed such a monster,
  693. >will have nil trouble getting it to do an inline assembly trick.
  694.  
  695.     There's nothing intrinsically wrong with an inline assembler in
  696. Pascal - there are, of course, new keywords to be introduced, and new
  697. semantics to be considered, and new syntax, but it's just code. However,
  698. the current architecture of THINK Pascal makes it very difficult to do
  699. these things - such a fundamental change to the compiler would require
  700. equally core changes to the editor and debugger, as well.
  701.  
  702. R.
  703.  
  704.  
  705.  
  706. -- 
  707. - ---------------------------------------------------------------------
  708. Rich Siegel                              Internet: siegel@world.std.com
  709. Senior Software Engineer                 Applelink: SIEGEL
  710. Symantec Languages Group
  711.  
  712.  
  713.  
  714. ---------------------------
  715.  
  716. From: scott@phylo.life.uiuc.edu (| particle man |)
  717. Subject: Sound.h w/THINK C 5.0.2
  718. Date: 23 Jan 92 05:04:53 GMT
  719. Organization: University of Illinois at Urbana
  720.  
  721. When I include the 'out of the box' Sound.h file included
  722. with TC 5.0.2, a syntax check of my code gives 
  723. an Enumeration Constant too Big Error.
  724.  
  725. Here's the code checked as offensive:
  726. #define twelfthRootTwo 1.05946309434
  727.  
  728.     rate22khz = 0x56EE8BA3,                 /* 22254.54545 in fixed-point */
  729.     rate11khz = 0x2B7745D1,                 /* 11127.27273 in fixed-point */
  730.  
  731. Anyone have any workarounds? Did I set some compiler option improperly?
  732.  
  733. Thanks in advance....
  734.                              -Scott
  735.  
  736.  
  737. --
  738.  
  739.     "Laugha while you cana, Monkey Boy!" -Emilio Lizardo
  740.  
  741.  
  742.  
  743. - -------------------------
  744.  
  745. From: potts@itl.itd.umich.edu (Paul Potts)
  746. Subject:  Sound.h w/THINK C 5.0.2
  747. Date: 23 Jan 92 15:58:25 GMT
  748. Organization: Advanced Workstation Lab, University of Michigan
  749.  
  750. In article <scott.696143107@phylo> scott@phylo.life.uiuc.edu (| particle man |) writes:
  751. >When I include the 'out of the box' Sound.h file included
  752. >with TC 5.0.2, a syntax check of my code gives 
  753. >an Enumeration Constant too Big Error.
  754. >
  755.  
  756. This problem is caused by setting the int-size to 16 bits and then setting
  757. the "enums are ints" option. Turn off the "enums are ints" or else change
  758. the integer size (the latter is harder, since if you are using stdio or any
  759. libraries you'll have to rebuild them with the longer ints).
  760.  
  761.  
  762. --
  763.          -Paul Potts-potts@itl.itd.umich.edu- 
  764. I! Hi'm a mtatng siugnaturei vir*ss. You cann~t reisth elping me  spre]d !
  765.  
  766.  
  767.  
  768. ---------------------------
  769.  
  770. From: bbs.metalmac@tsoft.sf-bay.org (Tom Santos)
  771. Subject: SIOW in MPW
  772. Date: 23 Jan 92 07:58:58 GMT
  773. Organization: The TeleSoft BBS and Public Access Unix, +1 415 969 7958
  774.  
  775. Has anyone managed to get the SIOW working?  Whenever I link in the
  776. library, I get a linker error that claims that my jump table exceeds 32K.
  777. I tried using the -ss linker option to increase the size of my segment
  778. but it claims that there should be no problem with size.
  779.  
  780. I am using MPWPQR5... could that be the problem?
  781.  
  782. Tom
  783.  
  784. --
  785. Tom Santos (bbs.metalmac@tsoft.sf-bay.org)
  786.  
  787.  
  788.  
  789. - -------------------------
  790.  
  791. From: rdominy@kong.gsfc.nasa.gov (Robert Dominy)
  792. Subject:  SIOW in MPW
  793. Date: 27 Jan 92 23:31:39 GMT
  794. Organization: NASA Goddard Space Flight Center
  795.  
  796. In article <ZcTZeB1w164w@tsoft.sf-bay.org>, bbs.metalmac@tsoft.sf-bay.org (Tom Santos) writes:
  797. > Has anyone managed to get the SIOW working?  Whenever I link in the
  798. > library, I get a linker error that claims that my jump table exceeds 32K.
  799. > I tried using the -ss linker option to increase the size of my segment
  800. > but it claims that there should be no problem with size.
  801.  
  802. I'm using it without problem.  In addition to the -ss option for the
  803. linker, you'll probably also need to set an option for the C compiler 
  804. (-bigseg, I believe).  Of course unless your source is very large or
  805. you're linking in a LOT of libraries you shouldn't ever see this.  If
  806. your source is large you might try segmenting it (use either #define pragma
  807. segmentName in your source files or use the compiler option -s segmentName
  808. when compiling).
  809.  
  810. - Bob
  811.  
  812.  
  813.  
  814. - -------------------------
  815.  
  816. From: ksand@apple.com (Kent Sandvik)
  817. Subject:  SIOW in MPW
  818. Date: 29 Jan 92 20:38:51 GMT
  819. Organization: MacDTS Mongols
  820.  
  821. In article <1992Jan27.233139.6139@ctr.columbia.edu>, rdominy@kong.gsfc.nasa.gov (Robert Dominy) writes:
  822. > In article <ZcTZeB1w164w@tsoft.sf-bay.org>, bbs.metalmac@tsoft.sf-bay.org (Tom Santos) writes:
  823. > > 
  824. > > Has anyone managed to get the SIOW working?  Whenever I link in the
  825. > > library, I get a linker error that claims that my jump table exceeds 32K.
  826. > > I tried using the -ss linker option to increase the size of my segment
  827. > > but it claims that there should be no problem with size.
  828. > I'm using it without problem.  In addition to the -ss option for the
  829. > linker, you'll probably also need to set an option for the C compiler 
  830. > (-bigseg, I believe).  Of course unless your source is very large or
  831. > you're linking in a LOT of libraries you shouldn't ever see this.  If
  832. > your source is large you might try segmenting it (use either #define pragma
  833. > segmentName in your source files or use the compiler option -s segmentName
  834. > when compiling).
  835.  
  836. With MPW 3.2 you might use -wrap for creation of more jump table entries
  837. in global data space, and -model far for full >32k segments. Don't use
  838. both at the same time, you might trigger a interdimensional bug which
  839. causes you to eat large quantities of aspirin.
  840.  
  841. Kent
  842.  
  843.  
  844.  
  845. ---------------------------
  846.  
  847. End of C.S.M.P. Digest
  848. **********************
  849.